package ch03.decoration;

import ch03.component.Beverage;

/**
 * Created by lenovo on 2017/11/11.
 */
public class Soy extends CondimentDecorator {
    Beverage beverage;
    public Soy(Beverage beverage){
        this.beverage=beverage;
    }
    @Override
    public String getDescription() {
        return beverage.getDescription()+",soy";
    }

    @Override
    public double cost() {
        return beverage.cost()+.30;
    }
}
